//
//  XRCommonTableViewCell.m
//  LiveIMTool
//
//  Created by NeiQuan on 16/10/26.
//  Copyright © 2016年 AlexiChen. All rights reserved.
//

#import "XRCommonTableViewCell.h"
#import "XRBaseModel.h"

@implementation XRCommonTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=UITableViewCellSelectionStyleNone;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self addOwnView];
        [self bindViewModel];
        self.selectionStyle=UITableViewCellSelectionStyleNone;
    }
    return self;
}
-(void)addOwnView
{
    
    
}
-(void)bindViewModel
{
   
    
    
}
+ (NSString *)cellIdentifier
{
    return NSStringFromClass([self class]);
}
//#pragma mark 处理点击事件
//// tableViewCell上collectionView空白部分点击事件穿透到 tablveiwcell上
//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
//{
//    UIView *view = [super hitTest:point withEvent:event];
//    if ([view isKindOfClass:[UICollectionView class]]||[view isKindOfClass:[UIScrollView class]] ) {
//        return self;
//    }
//    return [super hitTest:point withEvent:event];
//}
//便于子类快速调用子类
-(void)configTableView:(UITableView *)tableView withModel:(XRBaseModel*)model
{
    
    
}
@end
